package com.cdn.clock.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 蔡定努
 * 2024/06/05 11:42
 */
@ConfigurationProperties(prefix = "clock")
public class LockProperties {

    /**
     * 实现锁的介质，默认redisson
     */
    private RateLimitType type=RateLimitType.redission;

    private RateLimitType rateLimitType=RateLimitType.redission;

    public RateLimitType getType() {
        return type;
    }

    public void setType(RateLimitType type) {
        this.type = type;
    }

    public RateLimitType getRateLimitType() {
        return rateLimitType;
    }

    public void setRateLimitType(RateLimitType rateLimitType) {
        this.rateLimitType = rateLimitType;
    }

    public enum RateLimitType {
        redission, redis
    }
}
